package com.bbdjt.weixin.model;


import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;


import java.util.Date;

@Alias("patient")
@Table(name = "patient")
public class Patient implements Serializable  {
//使用@Transient注解可以忽略字段,添加该注解的字段不会作为表字段使用
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	//患者ID							
	@Column(name = "id")
	private Integer id;
	//患者手机号							
	@Column(name = "mobile")
	private String mobile;
	//患者性别							
	@Column(name = "sex")
	private Integer sex;
	//年龄							
	@Column(name = "age")
	private String age;
	//糖尿病病程							
	@Column(name = "bingli")
	private String bingli;
	//医生码							
	@Column(name = "doctor_code")
	private String doctorCode;
	//治疗方案							
	@Column(name = "treatment_plan")
	private String treatmentPlan;
	//最关注的问题有哪些							
	@Column(name = "concern_problem")
	private String concernProblem;
	//口服药治疗时间							
	@Column(name = "therapy_time")
	private String therapyTime;
	//空腹血糖							
	@Column(name = "fasting_blood_glucose")
	private Double fastingBloodGlucose;
	//餐后血糖							
	@Column(name = "postprandial_blood_glucose")
	private Double postprandialBloodGlucose;
	//选择题答案JSON							
	@Column(name = "answer_json")
	private String answerJson;
	//创建时间							
	@Column(name = "create_date")
	private Date createDate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
	public String getBingli() {
		return bingli;
	}

	public void setBingli(String bingli) {
		this.bingli = bingli;
	}
	public String getDoctorCode() {
		return doctorCode;
	}

	public void setDoctorCode(String doctorCode) {
		this.doctorCode = doctorCode;
	}
	public String getTreatmentPlan() {
		return treatmentPlan;
	}

	public void setTreatmentPlan(String treatmentPlan) {
		this.treatmentPlan = treatmentPlan;
	}
	public String getConcernProblem() {
		return concernProblem;
	}

	public void setConcernProblem(String concernProblem) {
		this.concernProblem = concernProblem;
	}
	public String getTherapyTime() {
		return therapyTime;
	}

	public void setTherapyTime(String therapyTime) {
		this.therapyTime = therapyTime;
	}
	public Double getFastingBloodGlucose() {
		return fastingBloodGlucose;
	}

	public void setFastingBloodGlucose(Double fastingBloodGlucose) {
		this.fastingBloodGlucose = fastingBloodGlucose;
	}
	public Double getPostprandialBloodGlucose() {
		return postprandialBloodGlucose;
	}

	public void setPostprandialBloodGlucose(Double postprandialBloodGlucose) {
		this.postprandialBloodGlucose = postprandialBloodGlucose;
	}
	public String getAnswerJson() {
		return answerJson;
	}

	public void setAnswerJson(String answerJson) {
		this.answerJson = answerJson;
	}
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}